<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Paho C++: src/mqtt/iasync_client.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Paho C++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">The Paho MQTT C++ Client Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('iasync__client_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Friends</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">iasync_client.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="iasync__client_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/*******************************************************************************</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * Copyright (c) 2013-2016 Frank Pagliughi &lt;fpagliughi@mindspring.com&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * All rights reserved. This program and the accompanying materials</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * are made available under the terms of the Eclipse Public License v1.0</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * and Eclipse Distribution License v1.0 which accompany this distribution.</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * The Eclipse Public License is available at</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *    http://www.eclipse.org/legal/epl-v10.html</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * and the Eclipse Distribution License is available at</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *   http://www.eclipse.org/org/documents/edl-v10.php.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * Contributors:</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *    Frank Pagliughi - initial implementation and documentation</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *******************************************************************************/</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef __mqtt_iasync_client_h</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define __mqtt_iasync_client_h</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="types_8h.html">mqtt/types.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="token_8h.html">mqtt/token.h</a>&quot;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="delivery__token_8h.html">mqtt/delivery_token.h</a>&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="iclient__persistence_8h.html">mqtt/iclient_persistence.h</a>&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="iaction__listener_8h.html">mqtt/iaction_listener.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="connect__options_8h.html">mqtt/connect_options.h</a>&quot;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="disconnect__options_8h.html">mqtt/disconnect_options.h</a>&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="exception_8h.html">mqtt/exception.h</a>&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="message_8h.html">mqtt/message.h</a>&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="callback_8h.html">mqtt/callback.h</a>&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">namespace </span>mqtt {</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classmqtt_1_1iasync__client.html">   57</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmqtt_1_1iasync__client.html">iasync_client</a></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;{</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classmqtt_1_1token.html">token</a>;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> remove_token(<a class="code" href="classmqtt_1_1token.html">token</a>* tok) =0;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classmqtt_1_1iasync__client.html#aee95659bed2446d0409ce33479f9cdad">   64</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="classmqtt_1_1iasync__client.html#aee95659bed2446d0409ce33479f9cdad">qos_collection</a> = std::vector&lt;int&gt;;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classmqtt_1_1iasync__client.html#a423bdce3b018de4597f773402f3eb360">   69</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classmqtt_1_1iasync__client.html#a423bdce3b018de4597f773402f3eb360">~iasync_client</a>() {}</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a21c51c547dbc75fcd45b5ab87523f5e1">connect</a>() =0;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a21c51c547dbc75fcd45b5ab87523f5e1">connect</a>(<a class="code" href="classmqtt_1_1connect__options.html">connect_options</a> options) =0;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a21c51c547dbc75fcd45b5ab87523f5e1">connect</a>(<a class="code" href="classmqtt_1_1connect__options.html">connect_options</a> options, <span class="keywordtype">void</span>* userContext,</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                               <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a21c51c547dbc75fcd45b5ab87523f5e1">connect</a>(<span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#aba2b3630f09fc47089d8487c6c6cf7cc">reconnect</a>() =0;</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#af6210f0a971f093fca297e3c8677132a">disconnect</a>() =0;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#af6210f0a971f093fca297e3c8677132a">disconnect</a>(<a class="code" href="classmqtt_1_1disconnect__options.html">disconnect_options</a> opts) =0;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#af6210f0a971f093fca297e3c8677132a">disconnect</a>(<span class="keywordtype">int</span> timeout) =0;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#af6210f0a971f093fca297e3c8677132a">disconnect</a>(<span class="keywordtype">int</span> timeout, <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#af6210f0a971f093fca297e3c8677132a">disconnect</a>(<span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a4be5917b3f0d0ed0347f50446bc034d9">get_pending_delivery_token</a>(<span class="keywordtype">int</span> msgID) <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="keyword">virtual</span> std::vector&lt;delivery_token_ptr&gt; <a class="code" href="classmqtt_1_1iasync__client.html#acd75b0c39458f65ca02ec37bd8c70f5a">get_pending_delivery_tokens</a>() <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1iasync__client.html#a984c922348948b9e57f41d77a0487403">get_client_id</a>() <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">string</span> <a class="code" href="classmqtt_1_1iasync__client.html#a18a9a1dba6ef043c09f49f1be75f297b">get_server_uri</a>() <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classmqtt_1_1iasync__client.html#a2c486e40ac2c91890d7ae40ef5223c92">is_connected</a>() <span class="keyword">const</span> =0;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> <a class="code" href="classmqtt_1_1topic.html">topic</a>,</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;                                       <span class="keyword">const</span> <span class="keywordtype">void</span>* payload, <span class="keywordtype">size_t</span> n,</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                                       <span class="keywordtype">int</span> qos, <span class="keywordtype">bool</span> retained) =0;</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> <a class="code" href="classmqtt_1_1topic.html">topic</a>,</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                                       <span class="keyword">const</span> <span class="keywordtype">void</span>* payload, <span class="keywordtype">size_t</span> n) =0;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> <a class="code" href="classmqtt_1_1topic.html">topic</a>,</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                                       <span class="keyword">const</span> <span class="keywordtype">void</span>* payload, <span class="keywordtype">size_t</span> n,</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                                       <span class="keywordtype">int</span> qos, <span class="keywordtype">bool</span> retained,</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                                       <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> <a class="code" href="classmqtt_1_1topic.html">topic</a>, <a class="code" href="classmqtt_1_1buffer__ref.html">binary_ref</a> payload,</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;                                       <span class="keywordtype">int</span> qos, <span class="keywordtype">bool</span> retained) =0;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(<a class="code" href="classmqtt_1_1buffer__ref.html">string_ref</a> <a class="code" href="classmqtt_1_1topic.html">topic</a>, <a class="code" href="classmqtt_1_1buffer__ref.html">binary_ref</a> payload) =0;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(const_message_ptr msg) =0;</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="keyword">virtual</span> delivery_token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">publish</a>(const_message_ptr msg,</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;                                       <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1iasync__client.html#ab02592cece3ea4f17164bf56ce7a16f2">set_callback</a>(<a class="code" href="classmqtt_1_1callback.html">callback</a>&amp; cb) =0;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classmqtt_1_1iasync__client.html#a137e34c3acb046deac069cd689459447">disable_callbacks</a>() = 0;</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8f33a38aa1735de94207418f8e301bf1">subscribe</a>(const_string_collection_ptr topicFilters,</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;                                <span class="keyword">const</span> <a class="code" href="classmqtt_1_1iasync__client.html#aee95659bed2446d0409ce33479f9cdad">qos_collection</a>&amp; qos) =0;</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8f33a38aa1735de94207418f8e301bf1">subscribe</a>(const_string_collection_ptr topicFilters,</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;                                 <span class="keyword">const</span> <a class="code" href="classmqtt_1_1iasync__client.html#aee95659bed2446d0409ce33479f9cdad">qos_collection</a>&amp; qos,</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;                                 <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; <a class="code" href="classmqtt_1_1callback.html">callback</a>) =0;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8f33a38aa1735de94207418f8e301bf1">subscribe</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; topicFilter, <span class="keywordtype">int</span> qos) =0;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8f33a38aa1735de94207418f8e301bf1">subscribe</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; topicFilter, <span class="keywordtype">int</span> qos,</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                                <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; <a class="code" href="classmqtt_1_1callback.html">callback</a>) =0;</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8df986b09325d22654cd161e8b4121f3">unsubscribe</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; topicFilter) =0;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8df986b09325d22654cd161e8b4121f3">unsubscribe</a>(const_string_collection_ptr topicFilters) =0;</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8df986b09325d22654cd161e8b4121f3">unsubscribe</a>(const_string_collection_ptr topicFilters,</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;                                   <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;    <span class="keyword">virtual</span> token_ptr <a class="code" href="classmqtt_1_1iasync__client.html#a8df986b09325d22654cd161e8b4121f3">unsubscribe</a>(<span class="keyword">const</span> <span class="keywordtype">string</span>&amp; topicFilter,</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;                                  <span class="keywordtype">void</span>* userContext, <a class="code" href="classmqtt_1_1iaction__listener.html">iaction_listener</a>&amp; cb) =0;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;};</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;<span class="comment">// end namespace &#39;mqtt&#39;</span></div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;}</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;<span class="preprocessor">#endif      // __mqtt_iasync_client_h</span></div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;<span class="preprocessor"></span></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_ab02592cece3ea4f17164bf56ce7a16f2"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#ab02592cece3ea4f17164bf56ce7a16f2">mqtt::iasync_client::set_callback</a></div><div class="ttdeci">virtual void set_callback(callback &amp;cb)=0</div><div class="ttdoc">Sets a callback listener to use for events that happen asynchronously. </div></div>
<div class="ttc" id="types_8h_html"><div class="ttname"><a href="types_8h.html">types.h</a></div><div class="ttdoc">Basic types and type conversions for the Paho MQTT C++ library. </div></div>
<div class="ttc" id="classmqtt_1_1iaction__listener_html"><div class="ttname"><a href="classmqtt_1_1iaction__listener.html">mqtt::iaction_listener</a></div><div class="ttdoc">Provides a mechanism for tracking the completion of an asynchronous action. </div><div class="ttdef"><b>Definition:</b> iaction_listener.h:48</div></div>
<div class="ttc" id="disconnect__options_8h_html"><div class="ttname"><a href="disconnect__options_8h.html">disconnect_options.h</a></div><div class="ttdoc">Implementation of the class &#39;disconnect_options&#39;. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a8f33a38aa1735de94207418f8e301bf1"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a8f33a38aa1735de94207418f8e301bf1">mqtt::iasync_client::subscribe</a></div><div class="ttdeci">virtual token_ptr subscribe(const_string_collection_ptr topicFilters, const qos_collection &amp;qos)=0</div><div class="ttdoc">Subscribe to multiple topics, each of which may include wildcards. </div></div>
<div class="ttc" id="classmqtt_1_1connect__options_html"><div class="ttname"><a href="classmqtt_1_1connect__options.html">mqtt::connect_options</a></div><div class="ttdoc">Holds the set of options that control how the client connects to a server. </div><div class="ttdef"><b>Definition:</b> connect_options.h:46</div></div>
<div class="ttc" id="classmqtt_1_1topic_html"><div class="ttname"><a href="classmqtt_1_1topic.html">mqtt::topic</a></div><div class="ttdoc">Represents a topic destination, used for publish/subscribe messaging. </div><div class="ttdef"><b>Definition:</b> topic.h:42</div></div>
<div class="ttc" id="message_8h_html"><div class="ttname"><a href="message_8h.html">message.h</a></div><div class="ttdoc">Declaration of MQTT message class. </div></div>
<div class="ttc" id="callback_8h_html"><div class="ttname"><a href="callback_8h.html">callback.h</a></div><div class="ttdoc">Declaration of MQTT callback class. </div></div>
<div class="ttc" id="classmqtt_1_1buffer__ref_html"><div class="ttname"><a href="classmqtt_1_1buffer__ref.html">mqtt::buffer_ref&lt; char &gt;</a></div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_ace79b81482256ee2c8bb26ad261d3a64"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#ace79b81482256ee2c8bb26ad261d3a64">mqtt::iasync_client::publish</a></div><div class="ttdeci">virtual delivery_token_ptr publish(string_ref topic, const void *payload, size_t n, int qos, bool retained)=0</div><div class="ttdoc">Publishes a message to a topic on the server. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a2c486e40ac2c91890d7ae40ef5223c92"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a2c486e40ac2c91890d7ae40ef5223c92">mqtt::iasync_client::is_connected</a></div><div class="ttdeci">virtual bool is_connected() const =0</div><div class="ttdoc">Determines if this client is currently connected to the server. </div></div>
<div class="ttc" id="exception_8h_html"><div class="ttname"><a href="exception_8h.html">exception.h</a></div><div class="ttdoc">Declaration of MQTT exception class. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_aba2b3630f09fc47089d8487c6c6cf7cc"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#aba2b3630f09fc47089d8487c6c6cf7cc">mqtt::iasync_client::reconnect</a></div><div class="ttdeci">virtual token_ptr reconnect()=0</div><div class="ttdoc">Reconnects the client using options from the previous connect. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a137e34c3acb046deac069cd689459447"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a137e34c3acb046deac069cd689459447">mqtt::iasync_client::disable_callbacks</a></div><div class="ttdeci">virtual void disable_callbacks()=0</div><div class="ttdoc">Stops the callbacks. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a4be5917b3f0d0ed0347f50446bc034d9"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a4be5917b3f0d0ed0347f50446bc034d9">mqtt::iasync_client::get_pending_delivery_token</a></div><div class="ttdeci">virtual delivery_token_ptr get_pending_delivery_token(int msgID) const =0</div><div class="ttdoc">Returns the delivery token for the specified message ID. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html"><div class="ttname"><a href="classmqtt_1_1iasync__client.html">mqtt::iasync_client</a></div><div class="ttdoc">Enables an application to communicate with an MQTT server using non-blocking methods. </div><div class="ttdef"><b>Definition:</b> iasync_client.h:57</div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_acd75b0c39458f65ca02ec37bd8c70f5a"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#acd75b0c39458f65ca02ec37bd8c70f5a">mqtt::iasync_client::get_pending_delivery_tokens</a></div><div class="ttdeci">virtual std::vector&lt; delivery_token_ptr &gt; get_pending_delivery_tokens() const =0</div><div class="ttdoc">Returns the delivery tokens for any outstanding publish operations. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a18a9a1dba6ef043c09f49f1be75f297b"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a18a9a1dba6ef043c09f49f1be75f297b">mqtt::iasync_client::get_server_uri</a></div><div class="ttdeci">virtual string get_server_uri() const =0</div><div class="ttdoc">Returns the address of the server used by this client. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_af6210f0a971f093fca297e3c8677132a"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#af6210f0a971f093fca297e3c8677132a">mqtt::iasync_client::disconnect</a></div><div class="ttdeci">virtual token_ptr disconnect()=0</div><div class="ttdoc">Disconnects from the server. </div></div>
<div class="ttc" id="iaction__listener_8h_html"><div class="ttname"><a href="iaction__listener_8h.html">iaction_listener.h</a></div><div class="ttdoc">Declaration of MQTT iaction_listener class. </div></div>
<div class="ttc" id="connect__options_8h_html"><div class="ttname"><a href="connect__options_8h.html">connect_options.h</a></div><div class="ttdoc">Declaration of MQTT connect_options class. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a8df986b09325d22654cd161e8b4121f3"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a8df986b09325d22654cd161e8b4121f3">mqtt::iasync_client::unsubscribe</a></div><div class="ttdeci">virtual token_ptr unsubscribe(const string &amp;topicFilter)=0</div><div class="ttdoc">Requests the server unsubscribe the client from a topic. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a984c922348948b9e57f41d77a0487403"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a984c922348948b9e57f41d77a0487403">mqtt::iasync_client::get_client_id</a></div><div class="ttdeci">virtual string get_client_id() const =0</div><div class="ttdoc">Returns the client ID used by this client. </div></div>
<div class="ttc" id="classmqtt_1_1callback_html"><div class="ttname"><a href="classmqtt_1_1callback.html">mqtt::callback</a></div><div class="ttdoc">Provides a mechanism for tracking the completion of an asynchronous action. </div><div class="ttdef"><b>Definition:</b> callback.h:41</div></div>
<div class="ttc" id="delivery__token_8h_html"><div class="ttname"><a href="delivery__token_8h.html">delivery_token.h</a></div><div class="ttdoc">Declaration of MQTT delivery_token class. </div></div>
<div class="ttc" id="iclient__persistence_8h_html"><div class="ttname"><a href="iclient__persistence_8h.html">iclient_persistence.h</a></div><div class="ttdoc">Declaration of MQTT iclient_persistence interface. </div></div>
<div class="ttc" id="classmqtt_1_1token_html"><div class="ttname"><a href="classmqtt_1_1token.html">mqtt::token</a></div><div class="ttdoc">Provides a mechanism for tracking the completion of an asynchronous action. </div><div class="ttdef"><b>Definition:</b> token.h:49</div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a21c51c547dbc75fcd45b5ab87523f5e1"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a21c51c547dbc75fcd45b5ab87523f5e1">mqtt::iasync_client::connect</a></div><div class="ttdeci">virtual token_ptr connect()=0</div><div class="ttdoc">Connects to an MQTT server using the default options. </div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_aee95659bed2446d0409ce33479f9cdad"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#aee95659bed2446d0409ce33479f9cdad">mqtt::iasync_client::qos_collection</a></div><div class="ttdeci">std::vector&lt; int &gt; qos_collection</div><div class="ttdoc">Type for a collection of QOS values. </div><div class="ttdef"><b>Definition:</b> iasync_client.h:64</div></div>
<div class="ttc" id="classmqtt_1_1iasync__client_html_a423bdce3b018de4597f773402f3eb360"><div class="ttname"><a href="classmqtt_1_1iasync__client.html#a423bdce3b018de4597f773402f3eb360">mqtt::iasync_client::~iasync_client</a></div><div class="ttdeci">virtual ~iasync_client()</div><div class="ttdoc">Virtual destructor. </div><div class="ttdef"><b>Definition:</b> iasync_client.h:69</div></div>
<div class="ttc" id="classmqtt_1_1disconnect__options_html"><div class="ttname"><a href="classmqtt_1_1disconnect__options.html">mqtt::disconnect_options</a></div><div class="ttdoc">Options for disconnecting from an MQTT broker. </div><div class="ttdef"><b>Definition:</b> disconnect_options.h:37</div></div>
<div class="ttc" id="token_8h_html"><div class="ttname"><a href="token_8h.html">token.h</a></div><div class="ttdoc">Declaration of MQTT token class. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_503ebd9f384f44c9859dcb1451d026bc.html">mqtt</a></li><li class="navelem"><a class="el" href="iasync__client_8h.html">iasync_client.h</a></li>
    <li class="footer">Generated on Sun Jul 23 2017 10:24:29 for Paho C++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
